<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 作业1：[1, 5, 8,88,100,23] [2,124,66,77,88,999] 通过函数封装 求两个数组的最大值（使用展开运算符）
      function getMax() {
        let arr = [1, 5, 8, 88, 100, 23]
        let arr1 = [2, 124, 66, 77, 88, 999]
        return Math.max(...arr, ...arr1)
      }

      console.log(getMax())
    </script>
  </body>
</html>
